<?php

/* 店铺 store */
class Store_billModel extends BaseModel
{
    var $table = 'store_bill';
    var $prikey = 'id';
    var $_name = 'store_bill';
    var $_relation = array(
        'has_store_commission' => array(
            'model' => 'store',
            'type' => BELONGS_TO,
            'foreign_key' => 'store_id',
            'reverse' => 'store_commission',
        ),
    );

    //待审核
    const STATUS_REVIEWED = 1;
    //待付款
    const STATUS_TO_PAID = 2;
    //已付款
    const STATUS_PAID = 3;

    // 设置映射关系
    public static $statusMap = array(
        self::STATUS_REVIEWED => '待审核',
        self::STATUS_TO_PAID => '待付款',
        self::STATUS_PAID => '已付款',
    );




}